package alex.game.updatable.plane
{
	import alex.game.network.Converger;
	
	import com.framework.GG;
	import com.framework.IUpdatable;
	import com.framework.util.FilterUtil;
	
	import flash.display.MovieClip;
	import flash.utils.getTimer;
	
	public class BasicPlane extends MovieClip implements IUpdatable
	{
		public static var PROTOCOLE_PLANE_SHOCKER:String = "1s";
		
		
		private var affichage:MovieClip;
		public var converger:Converger;
		public var speed:Number;
		
		
		
		public function BasicPlane()
		{
			converger = new Converger(this,500,500,0,1);
			this.speed = 10;
			this.rotation = 10;
			this.converger = converger;
			this.filters = [FilterUtil.getDropShadowFilter()];
		}
		
		public function create():void
		{
			//this.affichage = new PLANE_SHOCKER();
			this.addChild(affichage);
			
		}
		
		public function destroy():void
		{
			
		}
		
		public function update():void
		{
			converger.run();
			this.x = converger.posX;
			this.y = converger.posY;
		}

	}
}
